
package com.seekting.gongzhu.sdk.gson;

public final class GsonHolder {

    private String action;

    private String json;

    public GsonHolder(AJson aJson)
    {
        setAJson(aJson);
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public void setActionClass(Class<? extends AJson> c) {
        this.action = c.getSimpleName();
    }

    public void setAJson(AJson aJson) {
        this.action = aJson.getClass().getSimpleName();
        this.json = GsonConverter.convertStr(aJson);
    }

    public String getJson() {
        return json;
    }

    public void setJson(String json) {
        this.json = json;
    }

}
